package com.firestone.bean.entity.mysql.secondary;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author CAIYJ
 * @since 2018-03-27
 */
@TableName("im_manager")
public class ImManager extends Model<ImManager> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 区域ID
     */
    @TableField("area_id")
    private Integer areaId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 真实姓名
     */
    private String realname;
    /**
     * 电话
     */
    private String phone;
    /**
     * 单位
     */
    private String unit;
    /**
     * 联系人
     */
    @TableField("unit_contacts")
    private String unitContacts;
    /**
     * 联系电话
     */
    @TableField("unit_phone")
    private String unitPhone;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 状态 0：停用；1：启用
     */
    private Integer state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnitContacts() {
        return unitContacts;
    }

    public void setUnitContacts(String unitContacts) {
        this.unitContacts = unitContacts;
    }

    public String getUnitPhone() {
        return unitPhone;
    }

    public void setUnitPhone(String unitPhone) {
        this.unitPhone = unitPhone;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ImManager{" +
        ", id=" + id +
        ", areaId=" + areaId +
        ", username=" + username +
        ", password=" + password +
        ", realname=" + realname +
        ", phone=" + phone +
        ", unit=" + unit +
        ", unitContacts=" + unitContacts +
        ", unitPhone=" + unitPhone +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", state=" + state +
        "}";
    }
}
